package com.lottery.www.service.impl;

import com.lottery.www.entity.UserinfoHeaders;
import com.lottery.www.dao.UserinfoHeadersDao;
import com.lottery.www.service.UserinfoHeadersService;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author leo
 * @since 2023-06-08 14:43:53
 */
@Service("userinfoHeadersService")
public class UserinfoHeadersServiceImpl extends MPJBaseServiceImpl<UserinfoHeadersDao, UserinfoHeaders> implements UserinfoHeadersService {

    @Autowired
    private UserinfoHeadersDao userinfoHeadersDao;

    @Override
    public String findAuthByUsername(String username) {
        if(username==null){
            return null;
        }
        return userinfoHeadersDao.findAuthByUsername(username);
    }
}
